#ifndef KEY_H_
#define KEY_H_

#define KEY_NONE        0
#define KEY_UNKNOW      0xFF
#define KEY_0           '0'
#define KEY_1           '1'
#define KEY_2           '2'
#define KEY_3           '3'
#define KEY_4           '4'
#define KEY_5           '5'
#define KEY_6           '6'
#define KEY_7           '7'
#define KEY_8           '8'
#define KEY_9           '9'

#define KEY_A           'A'
#define KEY_B           'B'
#define KEY_C           'C'
#define KEY_D           'D'
#define KEY_E           'E'
#define KEY_F           'F'
#define KEY_G           'G'
#define KEY_H           'H'
#define KEY_I           'I'
#define KEY_J           'J'
#define KEY_K           'K'
#define KEY_L           'L'
#define KEY_M           'M'
#define KEY_N           'N'
#define KEY_O           'O'
#define KEY_P           'P'
#define KEY_Q           'Q'
#define KEY_R           'R'
#define KEY_S           'S'
#define KEY_T           'T'
#define KEY_U           'U'
#define KEY_V           'V'
#define KEY_W           'W'
#define KEY_X           'X'
#define KEY_Y           'Y'
#define KEY_Z           'Z'

#define KEY_a           'a'
#define KEY_b           'b'
#define KEY_c           'c'
#define KEY_d           'd'
#define KEY_e           'e'
#define KEY_f           'f'
#define KEY_g           'g'
#define KEY_h           'h'
#define KEY_i           'i'
#define KEY_j           'j'
#define KEY_k           'k'
#define KEY_l           'l'
#define KEY_m           'm'
#define KEY_n           'n'
#define KEY_o           'o'
#define KEY_p           'p'
#define KEY_q           'q'
#define KEY_r           'r'
#define KEY_s           's'
#define KEY_t           't'
#define KEY_u           'u'
#define KEY_v           'v'
#define KEY_w           'w'
#define KEY_x           'x'
#define KEY_y           'y'
#define KEY_z           'z'

#define KEY_BS                  0x08
#define KEY_TAB                 0x09
#define KEY_LF                  0x0a
#define KEY_ENTER               0x0d
#define KEY_CAN                 0x18
#define KEY_ESC                 0x1b
#define KEY_SPACE               ' '
#define KEY_DOT                 '.'
#define KEY_ASTERISK            '*'
#define KEY_POUND               '#'
#define KEY_MINUS               '-'
#define KEY_PLUS                '+'
#define KEY_EQUAL               '='
#define KEY_LESS                '<'
#define KEY_MORE                '>'
#define KEY_SLASH               '/'
#define KEY_BACKSLASH           0x5c
#define KEY_COMMA               ','
#define KEY_GRAVE               0x27
#define KEY_LEFTBRACE           '{'
#define KEY_RIGHTBRACE          '}'
#define KEY_SEMICOLON           ';'

#define KEY_EXPEND_BASE         128
#define KEY_F1                  (KEY_EXPEND_BASE + 1)
#define KEY_F2                  (KEY_EXPEND_BASE + 2)
#define KEY_F3                  (KEY_EXPEND_BASE + 3)
#define KEY_F4                  (KEY_EXPEND_BASE + 4)
#define KEY_F5                  (KEY_EXPEND_BASE + 5)
#define KEY_F6                  (KEY_EXPEND_BASE + 6)
#define KEY_F7                  (KEY_EXPEND_BASE + 7)
#define KEY_F8                  (KEY_EXPEND_BASE + 8)
#define KEY_F9                  (KEY_EXPEND_BASE + 9)
#define KEY_F10                 (KEY_EXPEND_BASE + 10)
#define KEY_F11                 (KEY_EXPEND_BASE + 11)
#define KEY_F12                 (KEY_EXPEND_BASE + 12)
#define KEY_LEFT                (KEY_EXPEND_BASE + 13)
#define KEY_RIGHT               (KEY_EXPEND_BASE + 14)
#define KEY_UP                  (KEY_EXPEND_BASE + 15)
#define KEY_DOWN                (KEY_EXPEND_BASE + 16)
#define KEY_POWER               (KEY_EXPEND_BASE + 17)

#endif /* KEY_H_ */
